import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ${USER}
 * Date: ${YEAR}-${MONTH}-${DAY}
 * Time: ${TIME}
 */
public class Main {
    public static void main(String[] args) {
        int arr[] = {1,2,1,2,1,2,2,2};
        Arrays.sort(arr);
        System.out.println(arr[arr.length/2]);
    }
}